﻿namespace EchoWx.Models
{
    /// <summary>
    /// 状态码
    /// </summary>
    public class ResultCode
    {
        /// <summary>
        /// 正常code
        /// </summary>
        public const int NormalCode = 0;

        /// <summary>
        /// 未传入片键或片键非法
        /// </summary>
        public const int NeedsKeyParameter = 10001;

        /// <summary>
        /// 相关数据已经存在
        /// </summary>
        public const int IsExistsValue = 10002;

        /// <summary>
        /// 相关数据不存在
        /// </summary>
        public const int NotExistsValue = 10003;

        /// <summary>
        /// 暂不支持此操作
        /// </summary>
        public const int NotSupported = 10004;

        /// <summary>
        /// 存在未传入的必传参数
        /// </summary>
        public const int ParametersRequired = 10005;

        /// <summary>
        /// 传入参数超出范围
        /// </summary>
        public const int OutOfRangeParameters = 10006;

        /// <summary>
        /// SQL执行未知错误
        /// </summary>
        public const int SQLExcuteError = 10007;

        /// <summary>
        /// 未知错误类型
        /// </summary>
        public const int UnknownException = 10008;

        /// <summary>
        /// 数据存在问题
        /// </summary>
        public const int DataError = 10009;
        /// <summary>
        ///登录数据已过期,需要重新登录
        /// </summary>
        public const int NeedLogin = 10010;

        #region + 业务错误字段
        /// <summary>
        /// 数据存在问题
        /// </summary>
        public const int WxUserUnBind = 20001;
        #endregion
    }
}
